package FunctionalInteface_Consumer;

import java.util.function.Consumer;

public class achieveConsumer implements Consumer<String>{

	@Override
	public void accept(String str) {
		String name = str.split(",")[0];
		System.out.print("姓名:" + name + '\t');
		
	}

}
